﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLinePacking.Enums;
using ZoneLinePacking.Models.Entity.Base;

namespace ZoneLinePacking.Models.Entity {

    [Table(Name = "base_index")]
    public class IndexEntity : EntityBase {

        private long _productID;
        /// <summary>
        /// 产品ID
        /// </summary>
        public long ProductID {
            get { return _productID; }
            set { _productID = value; base.RaisePropertyChanged(); }
        }

        private ePrintStartionCode _stationCode;
        /// <summary>
        /// 站点编号
        /// </summary>
        [Column(MapType = typeof(int))]
        public ePrintStartionCode StationCode {
            get { return _stationCode; }
            set { _stationCode = value; base.RaisePropertyChanged(); }
        }

        private int _curentIndex;
        /// <summary>
        /// 当前索引
        /// </summary>
        public int CurentIndex {
            get { return _curentIndex; }
            set { _curentIndex = value; base.RaisePropertyChanged(); }
        }


        private string _curentDate;
        /// <summary>
        /// 当前时间YYYYMMDD
        /// </summary>
        public string CurentDate {
            get { return _curentDate; }
            set { _curentDate = value; base.RaisePropertyChanged(); }
        }

        private DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime {
            get { return _createTime; }
            set { _createTime = value; base.RaisePropertyChanged(); }
        }

    }
}
